/**
 * Created by Alike on 2016/10/19.
 */
var cssEl = document.createElement('style');
document.documentElement.firstElementChild.appendChild(cssEl);
function setPxPerRem() {
    var dpr=1;
    var pxPerRem = $(window).width()*dpr/10;
    cssEl.innerHTML='html{font-size:'+pxPerRem+'px!important;}';

}
setPxPerRem();
